<div class="zs-body" data-ng-init="formInit('gzsqxm', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzsqxm');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">项目管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">社区项目申请/台账</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzsqxm') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzsqxm', gzsqxm.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzsqxm')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="唯一编号" ng-model="gzsqxm.queryObject['id']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gzsqxm.queryObject['sxmmc']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目编号" ng-model="gzsqxm.queryObject['sxmbh']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_dsqsj'  showcurday='gzsqxm.editRow.FIELD_ISNEW'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzsqxm.queryObject['dsqsj']" >
				   	</ag-Datebox>
                </span>
            	
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目状态" ng-model="gzsqxm.queryObject['sxmzt']"/>
                </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzsqxm')"/>
                <!--<a class="ope-1" ng-click="loadData('gzsqxm')"></a>
                <a class="ope-2"></a>-->
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzsqxm','allCheckbox');" />
                                    </th>
									<!--<th>唯一编号</th>-->
									<th>项目名称</th>
									<th>项目编号</th>
									<th>申请时间</th>
									<th>申请人</th>
									<th>申请资金(万元)</th>
									<th>联系方式</th>
									
									<th>投资信息</th>
								
									<th>项目状态</th>
									<th>产生效益(万元)</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzsqxm.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzsqxm',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  唯一编号 -->
            						<!--<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  项目名称 -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmmc"></label>
                                        </a>
                                   </td>
									<!--  项目编号 -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmbh"></label>
                                        </a>
                                   </td>
									<!--  申请时间 -->
								   <td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.dsqsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  申请人 -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.ssqr"></label>
                                        </a>
                                   </td>
									<!--  申请资金 -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.ssqzj"></label>
                                        </a>
                                   </td>
									<!--  联系方式 -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.slxfs"></label>
                                        </a>
                                   </td>
									
									<!--  投资信息 -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.stzxx"></label>
                                        </a>
                                   </td>
									
									<!--  项目状态 -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmzt"></label>
                                        </a>
                                   </td>
                                   <!--  产生效益(万元) -->
            						<td>
                                        <a ng-click="editRow('gzsqxm',r) && openWindow('edit');">
                                            <label ng-bind="r.scsxy"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzsqxm'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="社区项目申请/台账编辑" width='800px' height='450px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">唯一编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>项目名称</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzsqxm.editRow.sxmmc" class="zs-input" />
                                	
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="项目名称" required 
                                		ng-model="gzsqxm.editRow.sxmmc"
                                		name="form_sxmmc"/></span>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">项目编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.sxmbh" class="zs-input" />
                                </td>
                                <td class="text" width="20%"><font color="red">*</font>申请时间</td>
                                <td class="left" width="30%">
                                	<span><ag-Datebox id='fi_dsqsj'  showcurday='gzsqxm.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzsqxm.editRow.dsqsj" >
							   		</ag-Datebox></span>
                                	
							   		
							   		 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="申请时间" required 
                                		ng-model="gzsqxm.editRow.dsqsj"
                                		name="form_dsqsj"/></span>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>申请人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.ssqr" class="zs-input" />
                                	
                                		 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="申请人" required 
                                		ng-model="gzsqxm.editRow.ssqr"
                                		name="form_ssqr"/></span>
                                </td>
                                <td class="text" width="20%"><font color="red">*</font>申请资金(万元)</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.ssqzj" class="zs-input" />
                                	
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="申请资金(万元)" required 
                                		ng-model="gzsqxm.editRow.ssqzj"
                                		name="form_ssqzj"/></span>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>联系方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.slxfs" class="zs-input" />
                                	
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="联系方式" required 
                                		ng-model="gzsqxm.editRow.slxfs"
                                		name="form_slxfs"/></span>
                                </td>
                                <td class="text" width="20%"><font color="red">*</font>申请材料</td>
                                <td class="left" width="30%">
                                	<!--<input type="text" ng-model="gzsqxm.editRow.ssqcl" class="zs-input" />-->
                                	
                                	<span><ag-Upload ng-model="gzsqxm.editRow.ssqcl" para="{}"></ag-Upload></span>
                                	
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="申请材料" required 
                                		ng-model="gzsqxm.editRow.ssqcl"
                                		name="form_ssqcl"/></span>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">投资信息</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.stzxx" class="zs-input" />
                                </td>
                                <td class="text" width="20%">项目建设报告</td>
                                <td class="left" width="30%">
                                	<!--<input type="text" ng-model="gzsqxm.editRow.sxmjsbg" class="zs-input" />-->
                                	
                                	<span><ag-Upload ng-model="gzsqxm.editRow.sxmjsbg" para="{}"></ag-Upload></span>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">项目状态</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.sxmzt" class="zs-input" />
                                </td>
                                <td class="text" width="20%">产生效益(万元)</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzsqxm.editRow.scsxy" class="zs-input" />
                                	
                                	
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzsqxm', gzsqxm.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>